package com.wu.dao;

import com.wu.bean.Leavingamessage;
import com.wu.model.LeavingamessageUserModel;

import java.util.List;

public interface LeavingamessageDao {

    /**
     * 查询所有留言
     * @return
     */
    public List<LeavingamessageUserModel> QueryLeavingamessageAll();

    /**
     * 根据留言人查询信息
     * @param Username
     * @return
     */
    public List<LeavingamessageUserModel> QueryUsername(String Username);

    /**
     * 模糊查询留言内容
     * @param like
     * @return
     */
    public List<LeavingamessageUserModel> QueryLeavingamessageLike(String like);

    /**
     * 删除留言信息
     * @param id
     * @return
     */
    public  int DeleteLeavingamessage(int id);

    /**
     * 添加留言信息
     * @param leavingamessage
     * @return
     */
    public int AddLeavingamessage(Leavingamessage leavingamessage);

}
